package com.xxxx.manager;

import com.xxxx.api.service.GoodsCategoryService;
import com.xxxx.api.pojo.GoodsCategoryVo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

/**
 * 商品分类服务测试类
 */
//@RunWith(SpringRunner.class) Autowired无法注入,加入这个注解
@RunWith(SpringRunner.class)
@SpringBootTest()

public class GoodCategoryServiceTest {
   @Autowired
    private GoodsCategoryService goodsCategoryService;

   @Test
    public void testSelectCategoryListTable(){
       List<GoodsCategoryVo> gcvList = goodsCategoryService.selectCtegoryListTable();
       System.out.println("gcvList :"+gcvList);

   }


}
